package com.demo.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-weather",url ="https://aliv8.data.moji.com" )//feign客户端
public interface WeatherFeignClient {
    @PostMapping("/whapi/json/aliweather/aqiforecast5days")
    String getWeather(@RequestHeader("Authorization") String auth, @RequestParam("token") String token, @RequestParam("cityId") String cityId);

}
